﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Trading.Purchase.GoodsPurchaseContractAttachment;
using BCDto.Sim.Admin.Admin;
using BCDto.Trading.Purchase.GoodsPurchaseContractAttachment;
using BCEntity.Trading.Purchase.GoodsPurchaseContractAttachment;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Trading.Purchase.GoodsPurchaseContractAttachment
{
    /// <summary>
    /// 商品采购合同附件
    /// </summary>
    public interface IGoodsPurchaseContractAttachmentService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="goodsPurchaseContractAttachmentId">商品采购合同附件Id</param>
        bool Exists(long goodsPurchaseContractAttachmentId);
        /// <summary>
        /// 添加商品采购合同附件
        /// </summary>
        /// <param name="requestDto">商品采购合同附件信息</param>
        /// <param name="adminDto"></param>
        GoodsPurchaseContractAttachmentDto Add(GoodsPurchaseContractAttachmentRequestDto requestDto, AdminDto adminDto);
        /// <summary>
        /// 删除商品采购合同附件
        /// </summary>
        /// <param name="goodsPurchaseContractAttachmentId">商品采购合同附件Id</param>
        bool Delete(long goodsPurchaseContractAttachmentId);
        /// <summary>
        /// 获取商品采购合同附件
        /// </summary>
        /// <param name="goodsPurchaseContractAttachmentId">商品采购合同附件Id</param>
        GoodsPurchaseContractAttachmentDto Get(long goodsPurchaseContractAttachmentId);
        /// <summary>
        /// 获取商品采购合同附件列表
        /// </summary>
        /// <param name="goodsPurchaseId">商品采购单Id</param>
        IEnumerable<GoodsPurchaseContractAttachmentDto> GetList(long goodsPurchaseId);
        /// <summary>
        /// 获取商品采购合同附件分页列表
        /// </summary>
        /// <param name="goodsPurchaseId">商品采购单Id</param>
        /// <param name="purchaseContractNo">商品采购合同编号</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">商品采购合同附件每页数据条数</param>
        PageableList<GoodsPurchaseContractAttachmentDto> Query(long? goodsPurchaseId, string purchaseContractNo, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}